package me.lc.linklink.layer;

import me.lc.linklink.core.GameSystem;

import com.wiyun.engine.nodes.Layer;
import com.wiyun.engine.nodes.Sprite;
import com.wiyun.engine.opengl.Texture2D;
import com.wiyun.engine.types.WYPoint;

public class GameBGLayer extends Layer {

	public GameBGLayer() {
		Texture2D tex = GameSystem.gameBackgroundTex;
		Sprite sp = Sprite.make(tex);
		sp.setAnchorPercent(0, 0);
		sp.setPosition(WYPoint.make(0, 0));
		sp.setScaleX(GameSystem.Screen_Width / tex.getWidth());
		sp.setScaleY(GameSystem.Screen_Height / tex.getHeight());
		addChild(sp);
	}

}
